using Net35.Xrm.Sdk.Metadata;
using System;
using System.Runtime.Serialization;
namespace Net35.Xrm.Sdk.Messages
{
	[DataContract(Namespace = "http://schemas.microsoft.com/xrm/2011/Contracts")]
	public sealed class CreateEntityRequest : OrganizationRequest
	{
		public EntityMetadata Entity
		{
			get
			{
				if (base.Parameters.Contains("Entity"))
				{
					return (EntityMetadata)base.Parameters["Entity"];
				}
				return null;
			}
			set
			{
				base.Parameters["Entity"] = value;
			}
		}
		public bool HasActivities
		{
			get
			{
				return base.Parameters.Contains("HasActivities") && (bool)base.Parameters["HasActivities"];
			}
			set
			{
				base.Parameters["HasActivities"] = value;
			}
		}
		public bool HasNotes
		{
			get
			{
				return base.Parameters.Contains("HasNotes") && (bool)base.Parameters["HasNotes"];
			}
			set
			{
				base.Parameters["HasNotes"] = value;
			}
		}
		public StringAttributeMetadata PrimaryAttribute
		{
			get
			{
				if (base.Parameters.Contains("PrimaryAttribute"))
				{
					return (StringAttributeMetadata)base.Parameters["PrimaryAttribute"];
				}
				return null;
			}
			set
			{
				base.Parameters["PrimaryAttribute"] = value;
			}
		}
		public string SolutionUniqueName
		{
			get
			{
				if (base.Parameters.Contains("SolutionUniqueName"))
				{
					return (string)base.Parameters["SolutionUniqueName"];
				}
				return null;
			}
			set
			{
				base.Parameters["SolutionUniqueName"] = value;
			}
		}
		public CreateEntityRequest()
		{
			base.RequestName = "CreateEntity";
			this.Entity = null;
			this.HasActivities = false;
			this.HasNotes = false;
			this.PrimaryAttribute = null;
		}
	}
}
